package com.flag.liutao.modules.role.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("添加角色权限param")
public class RoleMenuParam {

    @ApiModelProperty("角色ID")
    @NotNull(message = "角色ID 不能为空")
    private Long roleId;

    @ApiModelProperty("权限ID")
    @NotEmpty(message = "请选择权限")
    private List<Long> MenuIdList;

}
